#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
struct s
{
	int a;
	char n;
	int* arr;
};

int main()
{
	struct s*ptr = (struct s*)malloc(sizeof(struct s));
	if (ptr == NULL)
	{
		perror("malloc1");
	}
	int* ps =(int*) malloc(20 * sizeof(int));
	if (ps == NULL)
	{
		perror("malloc2");
		return 1;
	}
	else
	{
		ptr->arr = ps;
	}
	return 0;
}